package www.qiyue.dowlloadEx;

import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.List;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import java.util.List;

public class ExDowllow {
    public static void main(String[] args) {
        List workbookList=createlist();
        //System.out.println(workbookList);
        try {
            //writeToXls(workbookList);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    public static List createlist(){
        List biaotou=new ArrayList();
        List resultList=new ArrayList();
        biaotou.add("name");
        biaotou.add("id");
        resultList.add(biaotou);
        List neirong=new ArrayList();
        neirong.add("A");
        neirong.add("AA");
        resultList.add(neirong);
        neirong=new ArrayList();//初始化一下，这样之前的值就不会加入
        neirong.add("b");
        neirong.add("bb");
        resultList.add(neirong);
        neirong=new ArrayList();
        neirong.add("C");
        neirong.add("CC");
        resultList.add(neirong);
        System.out.print(resultList);
        return resultList;
    }


}
